﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/MainAdmin.Master" CodeBehind="AdminBookLocationNameID.aspx.vb" Inherits="QLThuVien.AdminBookLocationNameID" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
<script type="text/javascript">
    function loadingPanel_ten(s, e) {
        lpanel.Show();
        var isValid = ASPxClientEdit.ValidateGroup('vg_ten');
        e.processOnServer = isValid;
        if (!isValid) {
            lpanel.Hide();
        }
    }
    function loadingPanel_ma(s, e) {
        lpanel.Show();
        var isValid = ASPxClientEdit.ValidateGroup('vg_ma');
        e.processOnServer = isValid;
        if (!isValid) {
            lpanel.Hide();
        }
    }

</script> 
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div class="row">
        <div class="col-md-12">
            <h1 class="page-header">
                Xem - Chuyển
            </h1>
        </div>
    </div>
    <asp:UpdatePanel ID="UpdatePanel" runat="server">
        <ContentTemplate>
            <div class="row">
    <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                            Mã - Tên
                        </div>
                        <div class="panel-body">
                            <div class="row">
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label>
                                            Mã Sách</label>
                                        <div class="input-group">
                                            <span class="input-group-btn">
                                                <dx:ASPxButton ID="bt_timma" runat="server" Text="Tìm" CssClass="btn btn-default" ValidationGroup="vg_ma" >
                                                <ClientSideEvents Click="loadingPanel_ma"/>
                                                </dx:ASPxButton>
                                            </span>
                                            <dx:ASPxTextBox ID="tb_masach" runat="server" CssClass="form-control" NullText="Nhập Mã Sách...">
                                            <ValidationSettings ValidationGroup="vg_ma" ErrorTextPosition="Right"  >
                                                <RequiredField IsRequired="true" ErrorText="Chưa Nhập Mã Sách" />
                                            </ValidationSettings>
                                            </dx:ASPxTextBox>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-lg-6">
                                    <div class="form-group">
                                        <label>
                                            Tên Sách</label>
                                        <div class="input-group">
                                            <span class="input-group-btn">
                                                <dx:ASPxButton ID="bt_timten" runat="server" Text="Tìm" CssClass="btn btn-default"   ValidationGroup="vg_ten" >
                                                <ClientSideEvents Click="loadingPanel_ten" /> 
                                                </dx:ASPxButton>
                                            </span>
                                            <dx:ASPxTextBox ID="tb_tensach" runat="server" CssClass="form-control"  NullText="Nhập Tên Sách...">
                                            <ValidationSettings ValidationGroup="vg_ten" ErrorTextPosition="Right"  >
                                                <RequiredField IsRequired="true" ErrorText="Chưa Nhập Tên Sách" />
                                            </ValidationSettings>
                                            </dx:ASPxTextBox>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="panel-heading">
                            Danh Sách
                        </div>
                        <div class="panel-body">
                            <div class="row" id="container">
                               <dx:ASPxNewsControl ID="data_sach" runat="server" Width="100%" DateField="ngaynhap"
                                        TextField="chitiet" Border-BorderStyle="None" ImageUrlField="hinh" HeaderTextField="tensach"
                                        NameField="id_sach" ClientInstanceName="data_sach"   RowPerPage="5" >
                                        <ItemSettings ShowImageAsLink="True" MaxLength="30" TailText="Chuyển Vị Trí"  DateVerticalPosition="BelowHeader"/>
                                        <ItemImage Width="100px" Height="100px">
                                        </ItemImage>
                                        
                                        <ItemHeaderStyle Font-Bold="true" ForeColor="OrangeRed">
                                        </ItemHeaderStyle>
                                        <ItemDateStyle ForeColor="GrayText" Font-Size="Small" BackColor="AliceBlue">
                                        </ItemDateStyle>   
                                         <itemsettings maxlength="30" showimageaslink="True" tailtext="Chuyển Vị Trí">
                                        </itemsettings>
                                         <PagerSettings   Visible="true" PageSizeItemSettings-Items="5,10,15,20" PageSizeItemSettings-Visible="true" PageSizeItemSettings-Position="Left" Position="TopAndBottom" LastPageButton-Image-IconID="arrows_last_32x32office2013" LastPageButton-ShowDefaultText="false"  
                                         LastPageButton-Visible="true" FirstPageButton-Image-IconID="arrows_first_32x32office2013"  FirstPageButton-ShowDefaultText="false"   FirstPageButton-Visible="true" 
                                         NextPageButton-Visible="true" NextPageButton-Image-IconID="arrows_next_32x32office2013" NextPageButton-ShowDefaultText="false"  PrevPageButton-Image-IconID="arrows_prev_32x32office2013" PrevPageButton-Visible="true"  PrevPageButton-ShowDefaultText="true" >
                                        <firstpagebutton visible="True">
                                            <image iconid="arrows_first_32x32office2013">
                                            </image>
                                        </firstpagebutton>
                                        <lastpagebutton visible="True">
                                            <image iconid="arrows_last_32x32office2013">
                                            </image>
                                        </lastpagebutton>
                                        <nextpagebutton visible="True">
                                            <image iconid="arrows_next_32x32office2013">
                                            </image>
                                        </nextpagebutton>
                                        <prevpagebutton showdefaulttext="True" visible="True">
                                            <image iconid="arrows_prev_32x32office2013">
                                            </image>
                                        </prevpagebutton>
                                        <pagesizeitemsettings items="5, 10, 15, 20" position="Left" visible="True">
                                        </pagesizeitemsettings>
                                        </PagerSettings> 
                                        <border borderstyle="None"></border>
                                  
                                    </dx:ASPxNewsControl>
                                <dx:ASPxLoadingPanel ID="lpanel" runat="server" ClientInstanceName="lpanel"  Modal="true" ContainerElementID="container" VerticalAlign="Middle"  >
                                </dx:ASPxLoadingPanel>
                               
                            </div>
                            
                    </div>
                </div>
                </div>
                </div>
                 <dx:ASPxPopupControl ID="pc_details" runat="server" PopupHorizontalAlign="WindowCenter" 
                                        ShowPageScrollbarWhenModal="True" PopupVerticalAlign="WindowCenter"
                                        ClientInstanceName="pc_details"  Width="400px" Height="300px"  
                                        EnableViewState="False" Modal="True" HeaderText="Chuyển Vị Trí"   >                                      
                                    </dx:ASPxPopupControl>
                </ContentTemplate>
                </asp:UpdatePanel>
</asp:Content>
